package com.mine.frame.common.bus

/**
 * company 广东玛格家居有限公司
 * @author smoker
 * @Date 2021/11/12
 * Description:
 */
data class RxBusBean constructor(val id:Int){
    var what:Int = 0
    var args1:Int = 0
    var str:String = ""
    var args2:Int = 0
    var any1:Any? = null
    var any2:Any? = null

    fun what(what:Int):RxBusBean{
        this.what = what
        return this
    }

    fun args1(args1:Int):RxBusBean{
        this.args1 = args1
        return this
    }

    fun args2(args2:Int):RxBusBean{
        this.args2 = args2
        return this
    }


    fun str(str:String):RxBusBean{
        this.str = str
        return this
    }

    fun any1(any1:Any):RxBusBean{
        this.any1 = any1
        return this
    }

    fun any2(any2:Any):RxBusBean{
        this.any2 = any2
        return this
    }
}